body {
  height: 500px;
  width: 400px;
  box-shadow: inset 0 0 10px rgba(21, 165, 237, 0.5),
    0 0 5px rgba(21, 165, 237, 0.5);
  padding: 5px;
  border-radius: 10px;
  overflow: hidden;
  color: #f7aac8;
  /* background: #d1e4f3; */
}
.title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 5px 0;
}
.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-weight: bold;
}
.main {
  flex: 1;
  overflow-y: scroll;
  padding: 0 1em;
  color: skyblue;
  text-align: center;
}
.main-item {
  display: flex;
  font-size: 14px;
  padding: 5px 0;
}
.main-label {
  color: #f7aac8;
  padding-right: 2em;
  text-align: left;
  width: 25%;
  margin: auto 0;
  display: flex;
}
.main-value {
  text-align: left;
  flex: 1;
  margin: auto;
}
/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
.main::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/*定义滚动条轨道 内阴影+圆角*/
.main::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #fafafa;
}

/*定义滑块 内阴影+圆角*/
.main::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgb(191, 191, 191);
}

.footer {
  padding: 1em;
  font-size: 14px;
}
.footer-item {
  text-align: center;
  margin-top: 5px;
}

.smart-switch {
  margin: auto;
  margin-bottom: 5px;
  --active-bg: #00bcd4;

  --inactive-bg: #607d8b;
  width: 60px;
  height: 24px;
  border-radius: 12px;
  background: var(--inactive-bg);
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.smart-switch[data-state="on"] {
  background: var(--active-bg);
}

.indicator {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-state="on"] .indicator {
  transform: translateX(36px);
}

.status-label::after {
  content: attr(data-state);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: system-ui;
  font-weight: 600;
  text-transform: uppercase;
}
